import { http } from '@/utils/http/axios';

export function listMachine(data = {}) {
  return http.request({
    url: '/admin/base/machine/list',
    method: 'get',
    data,
  });
}

export function pageMachine(data = {}) {
  return http.request({
    url: '/admin/base/machine/page',
    method: 'post',
    data,
  });
}

export function addMachine(data = {}) {
  return http.request({
    url: '/admin/base/machine/add',
    method: 'post',
    data,
  });
}

export function updateMachine(data = {}) {
  return http.request({
    url: '/admin/base/machine/update',
    method: 'post',
    data,
  });
}

export function delMachine(data = {}) {
  return http.request({
    url: '/admin/base/machine/delete',
    method: 'post',
    data,
  });
}

export function getMachineByMac(data = {}) {
  return http.request({
    url: '/admin/base/machine/byMac',
    method: 'post',
    data,
  });
}


